import request from '@/utils/request'

// 获取权限列表
export function getPowerList (type) {
  return request({
    url: `rights/${type}`,
    method: 'get'
  })
}

// 删除用户角色指定权限
export function deletePower (rId, aId) {
  return request({
    url: `roles/${rId}/rights/${aId}`,
    method: 'delete'
  })
}
